package com.zs.toolbox.web2j.system.core.service;

import com.zs.toolbox.web2j.common.request.WtPrimaryKeyReqeust;
import com.zs.toolbox.web2j.common.response.WtBaseResponse;
import com.zs.toolbox.web2j.system.core.entity.WtUserEntity;
import com.zs.toolbox.web2j.system.core.request.WtDictListReqeust;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author shuai.zhang  on 2018/9/22
 * @description
 */
@Api("核心系统服务")
@RequestMapping(value = "/api/v1/service/core")
public interface WtCoreClientService {

    @PostMapping("type")
    @ApiOperation("字典信息查询")
    WtBaseResponse getDictByType(@RequestBody WtDictListReqeust reqeust);

    @PostMapping("userInfo")
    @ApiOperation("用户基本信息查询")
    WtBaseResponse<WtUserEntity> getUserInfo(@RequestBody WtPrimaryKeyReqeust<Long> wtPrimaryKeyReqeust);

}
